Skip to content

fix(ci): build changeset-sync-manifest before version script#59

Merged
ryanbas21 merged 1 commit into
mainfrom
fix/ci-version-script
May 15, 2026
Merged

fix(ci): build changeset-sync-manifest before version script#59
ryanbas21 merged 1 commit into
mainfrom
fix/ci-version-script

Conversation

@ryanbas21
Copy link
Copy Markdown
Owner

Summary

  • The changesets action runs git reset --hard before executing the version script, which wipes build artifacts since dist/ is gitignored
  • The version script then fails with Cannot find module 'packages/changeset-sync-manifest/dist/bin.js'
  • Fix: build the sync-manifest package inline (pnpm --filter @wolfcola/changeset-sync-manifest build) before invoking the binary

Test plan

  • Merge to main and verify the release workflow's changeset version step completes successfully

🤖 Generated with Claude Code

The changesets action does a `git reset --hard` which wipes build
artifacts (dist/ is gitignored). The version script then fails because
`dist/bin.js` doesn't exist. Fix by building the package inline before
invoking the binary.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@pullfrog pullfrog Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No new issues found.

TL;DR — Pre-builds the changeset-sync-manifest package before invoking its binary in the version script, working around the changesets/action's git reset --hard wiping untracked build artifacts.

Key changes

  • Build sync-manifest before use in version script — Adds pnpm --filter @wolfcola/changeset-sync-manifest build && before the existing node packages/changeset-sync-manifest/dist/bin.js invocation in package.json:23.

Summary | 1 file | 1 commit | base: mainfix/ci-version-script

Change is correct and complete: the package has a build script (tsc -p tsconfig.lib.json), the release workflow uses pnpm run version which maps to this script, and no other callers of the binary exist in the repo. The snapshot job uses pnpm changeset version --snapshot directly and is unaffected.

Pullfrog  | View workflow run𝕏

@ryanbas21 ryanbas21 merged commit 7a1ce55 into main May 15, 2026
1 check passed
@ryanbas21 ryanbas21 deleted the fix/ci-version-script branch May 15, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant